#include <QCoreApplication>
#include <iostream>
using namespace std;
int main ()
{
       int day;
       cout<<"Vvedite day"<<endl;
       cin>>day;
       if (day%7==0)
           cout<<"friday";
       else if (day%6==0)
           cout<<"thursday";
       else if (day%5==0)
           cout<<"wendsday";
       else if (day%4==0)
           cout<<"tuesday";
       else if (day%3==0)
           cout<<"monday";
       else if (day%2==0)
           cout<<"sunday";
       else
           cout<<"satirday";
       return 0;
}
